package unidade10;

public class Calculos {

	public static int potencia(int base, int exp){
		int pote=1;
		for (int i=1;i<=exp;i++){
			pote = pote * base;
		}
		return pote;
	}

	public static int fatorial(int nu){
		int fat=1;
		for (int i=1;i<=nu;i++){
			fat = fat * nu;
		}
		return fat;
	}

}
